package com.common.repository;

import com.common.dao.SimpleDao;
import com.common.entity.SupperEntity;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * Description:
 * Date: 2024/1/12 23:41
 */
@Component
@Scope("prototype")
public class SimpleRepository<I, E extends SupperEntity<I>> extends BaseRepository<I, E, SimpleDao<I, E>> {
    /**
     * 简化开发
     * @return
     */
    @Override
    protected Class<E> getEntityClass() {
        return super.entityClass;
    }
}
